<template>
  <div class="wrapper">
    <div class="number">
      {{number}}
    </div>
    <div class="content">
      <div class="question">
        {{question}}
      </div>
      <div class="answer">
        {{answer}}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'XumQuestion',
  props: {
    number: {
      type: [String, Number],
      default: '00'
    },
    answer: {
      type: String,
      default: '',
      request: true
    },
    question: {
      type: String,
      default: '',
      request: true
    }
  }
}
</script>

<style lang="scss" scoped>

  .wrapper{

    .number{
      width: 50px;
      height: 30px;
      display: inline-block;
      vertical-align: top;
      text-align: left;
      line-height: 30px;
      color: #333333;
      font-weight: 700;
    }

    .content{
      width: calc(100% - 50px);
      display: inline-block;
      text-align: left;
      line-height: 30px;

      .question{
        max-height: 30px;
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
        color: #333333;
        margin-bottom: 8px;
      }

      .answer{
        overflow: hidden;
        font-family: 'Lato', sans-serif;
        font-size: 16px;
        color: #777777;
      }

    }

  }

</style>
